package com.yangrong.newsservice.feign;

import com.yangrong.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.IOException;
import java.util.Map;

@FeignClient("news-third-service")
public interface ThirdServiceFeignService {

    @RequestMapping("/oss/uploadString")
    public R uploadString(@RequestParam String content);

    @RequestMapping("/oss/delete")
    public R delete(@RequestParam Map<String, Object> params);

    @RequestMapping("/oss/read")
    public R read(@RequestParam Map<String, Object> params) throws IOException;

}
